package com.yangjiayu.factforge.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/test")
    public String test()
    {
        return "Hello World";
    }

    @PostMapping("/test")
    public String testPost(String name)
    {
        return "test post" + name;
    }

}
